package cn.jobstart.command;

import cn.jobstart.common.IdGen;
import cn.jobstart.enums.SpiderMonitorDataTypeEnum;
import cn.jobstart.modelExt.SpiderMonitorExt;
import cn.jobstart.spider.service.ISpiderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-09-20 11:13
 */

@Component
@Slf4j
public class NbrcJobCommand implements CommandLineRunner {

    @Resource
    private ISpiderService spiderService;

    /**
     * Callback used to run the bean.
     *
     * @param args incoming main method arguments
     * @throws Exception on error
     */
    @Override
    public void run(String... args) throws Exception {


      /*  SpiderMonitorExt spiderMonitor = new SpiderMonitorExt();
        spiderMonitor.setId(IdGen.uuid());
        spiderMonitor.setDataType(SpiderMonitorDataTypeEnum.JOB.getType());
        spiderMonitor.setName("人才网职位");
        spiderService.startNbrcJob(spiderMonitor);*/
    }
}
